<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    /**
     * DOM 元素加载完成
     */
    window.document.addEventListener('DOMContentLoaded', () => {
      console.log('DOMContentLoaded')
    })
  </script>
</body>

</html>